package com.mjf.cjt.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * desc
 * </p>
 *
 * @author chenshoumeng
 * @date 2025/8/6 22:23
 */
@Data
@TableName("t_cjtzjb_purchasearrival_detail")
public class TCjtzjbPurchasearrivalDetail {
    /** 主键ID */
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long purchaseId; // 主单ID
    /** 行号，从1开始增长 */
    private Integer code;

    /** 存货编码 */
    private String inventoryCode;

    /** 存货名称 */
    private String inventoryName;

    /** 存货条形码 */
    private String inventoryBarcode;

    /** 项目编码 */
    private String projectCode;

    /** 项目名称 */
    private String projectName;

    /** 仓库编码 */
    private String warehouseCode;

    /** 货位编码 */
    private String invlocationCode;

    /** 货位编码 */
    private String invlocationDetailsCode;

    /** 当前货位要存放的数量 */
    private BigDecimal invlocationDetailsQuantity;

    /** 单/多货位标识，单货位为空，多货位为“多货位” */
    private String inventoryLocation;

    /** 失效日期 */
    private LocalDate expiryDate;

    /** 生产日期 */
    private LocalDate productionDate;

    /** 批号 */
    private String batch;

    /** 序列号编码 */
    private String sncode;

    /** 计量单位名称 */
    private String unitName;

    /** 数量 */
    private BigDecimal quantity;

    /** 主计量单位数量 */
    private BigDecimal baseQuantity;

    /** 成本金额 */
    private BigDecimal amount;

    /** 成本单价 */
    private BigDecimal price;

    /** 是否手工改价 */
    private Boolean isModifiedPrice;

    /** 数量2 */
    private BigDecimal quantity2;

    /** 含税金额 */
    private BigDecimal origTaxAmount;

    /** 含税单价 */
    private BigDecimal origTaxPrice;

    /** 单价 */
    private BigDecimal origDiscountPrice;

    /** 金额 */
    private BigDecimal origDiscountAmount;

    /** 折扣率 */
    private BigDecimal discountRate;

    /** 报价 */
    private BigDecimal origPrice;

    /** 税率 */
    private BigDecimal taxRate;

    /** 税额 */
    private BigDecimal taxAmount;

    /** 到货日期 */
    private LocalDate acceptDate;

    /** 是否赠品 */
    private Boolean isPresent;

    private BigDecimal pubUserDefDecm1;
    private BigDecimal pubUserDefDecm2;
    private BigDecimal pubUserDefDecm3;
    private BigDecimal pubUserDefDecm4;
    private BigDecimal pubUserDefDecm5;

    private String pubUserDefNvc1;
    private String pubUserDefNvc2;
    private String pubUserDefNvc3;
    private String pubUserDefNvc4;
    private String pubUserDefNvc5;

    private BigDecimal priUserDefDecm1;
    private BigDecimal priUserDefDecm2;
    private BigDecimal priUserDefDecm3;
    private BigDecimal priUserDefDecm4;
    private BigDecimal priUserDefDecm5;

    private String priUserDefNvc1;
    private String priUserDefNvc2;
    private String priUserDefNvc3;
    private String priUserDefNvc4;
    private String priUserDefNvc5;

    /** 行号 */
    private String settleDetailsCode;

    /** 结算方式编码 */
    private String settleStyleCode;

    /** 账号名称 */
    private String bankAccountName;

    /** 付款金额 */
    private BigDecimal settleDetailsOrigAmount;

    /** 票据号 */
    private String settleDetailsDocCode;
}
